Is there a way for Typescript to detect correct overloaded function on composition

visit shbcf.ru